package com.aaa.common.util;

public enum ResultStatus {
    //枚举类赋值要调构造
    SUCCESS(2000,"成功"),//成功
    FAIL(5000,"失败");//失败

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }
    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
